﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="uc_app_det_main.ascx.cs" Inherits="main_uc_app_det_main" %>
<%@ Register Assembly="ESWebFramework.I18N" Namespace="ESWebFramework.I18N" TagPrefix="eswf" %>
<style>
._margin10
{
    margin:10px;
}

.destination
{
	clear:both;text-align:left;font-weight:bold;padding-top:12px;padding-left:12px;
}
.looading  span
{
	 float:left;width:150px;text-align:left;padding-top:8px;padding-left:12px;
}
.unloading  span
{
	 float:left;width:150px;text-align:left;padding-top:8px;padding-left:12px;
}

.looading
{
	
	width:50%;
	float:left;
}
.unloading
{
	
	width:50%;
	float:right;
}
select
{
	font-size:12px;
}
</style>
<script type="text/javascript">
    $("#daily_transport").show();
    var Step2CargoTransport = {
                app_id: '<%=application_id%>',
                loading_type_id: 1,
                step2_id: 1
    }
    $(document).ready(function() {
        // Datepicker
        $('#<%=tbDateLoading.ClientID%>').datepicker({ dateFormat: 'dd/mm/yy' });
        $('#<%=tbDateUnloading.ClientID%>').datepicker({ dateFormat: 'dd/mm/yy' });

        $('#<%=ddlCountryLoading.ClientID%>').change();
        $('#<%=ddlCountryUnloading.ClientID%>').change();

    });

    function DeleteApplication() {
        if (confirm("Are you sure wan't to delete this Application?")) {
            return true;
        }
        return false;
    }

    //Loading Seaports or Airports
    function loadDetLoadingPlaces(isloading, country_id) {

        var placetype_id = 0; //AirPorts
        var ddl_to_add = '';
        var type_transport_id = '<%=type_transs_id%>';
        var type_offer_id = '<%=type_offs_id%>';

        switch (type_transport_id) {
            case '164': //Road Transport
            case '166': //Rail transport 
                return;
                break;
            case '40': //Combined transport 
                return;
                break;
            case '167': //Air Transport
                placetype_id = 3;
                if (isloading) {
                    ddl_to_add = $('#<%=ddlAirportLoading.ClientID%>');
                }
                else {
                    ddl_to_add = $('#<%=ddlAirportUnloading.ClientID%>');
                }
                break;
            case '165': //Sea transport
                placetype_id = 1;
                if (type_offer_id == '69')//Cargo
                {
                    if (isloading) {
                        ddl_to_add = $('#<%=ddlSeaPortLoading.ClientID%>');
                    }
                    else {
                        ddl_to_add = $('#<%=ddlSeaPortUnloading.ClientID%>');
                    }
                }
                else//Transport
                {
                    return;
                }
                break;
        }

        $.ajax
        ({
            url: "admin/webservice/Places.asmx/LoadPlacesByTypeAndCountry",
            data: '{placetype_id:' + placetype_id + ',country_id: ' + country_id + '}',
            dataType: "json",
            async: false,
            contentType: "application/json; charset=utf-8",
            type: "POST",
            complete: function(json1) {
                var c = JSON.parse(json1.responseText);
                var d = JSON.parse(c.d);
                ddl_to_add.html('')
                $('<option value="0"></option>').appendTo(ddl_to_add);
                for (var i in d) {
                    $('<option value="' + i + '">' + d[i] + '</option>').appendTo(ddl_to_add);
                }
            }
        });
    }

    function LoadEditApp(appid)
    {
        //Loading
        $('#<%=tbLoadingID.ClientID%>').val($('#edit_loading_0_' + appid).text());
        $('#<%=tbDateLoading.ClientID%>').val($('#edit_loading_1_' + appid).text());
        $('#<%=tbTimeLoading.ClientID%>').val($('#edit_loading_2_' + appid).text());
        $('#<%=ddlCountryLoading.ClientID%>').val($('#edit_loading_3_' + appid).text());
        $('#<%=tbCityLoading.ClientID%>').val($('#edit_loading_4_' + appid).text());
        $('#<%=tbPostCodeLoading.ClientID%>').val($('#edit_loading_5_' + appid).text());
        $('#<%=ddlAMPMLoading.ClientID%>').val($('#edit_loading_6_' + appid).text());
        //Unloading
        $('#<%=tbUnloadingID.ClientID%>').val($('#edit_unloading_0_' + appid).text());
        $('#<%=tbDateUnloading.ClientID%>').val($('#edit_unloading_1_' + appid).text());
        $('#<%=tbTimeUnloading.ClientID%>').val($('#edit_unloading_2_' + appid).text());
        $('#<%=ddlCountryUnloading.ClientID%>').val($('#edit_unloading_3_' + appid).text());
        $('#<%=tbCityUnloading.ClientID%>').val($('#edit_unloading_4_' + appid).text());
        $('#<%=tbPostCodeUnloading.ClientID%>').val($('#edit_unloading_5_' + appid).text());
        $('#<%=ddlAMPMUnloading.ClientID%>').val($('#edit_unloading_6_' + appid).text());
    }

    var counter = 1;
    
    function addAditional() {

        $('<div style="clear:both;"><br/></div>').appendTo($('#additional_destination'));
        $('#loading').clone(false).attr('id', 'loading' + counter).appendTo($('#additional_destination'));
        $('#unloading').clone(false).attr('id', 'unloading' + counter).appendTo($('#additional_destination'));

        count = 1;
        $('#loading' + counter).find('input').each(function() {
            this.id = 'loading' + counter + '_input_' + count;
            this.value = '';
            this.name = 'loading' + counter + '_input_' + count++;
        });
        count = 1;
        $('#loading' + counter).find('select').each(function() {
            this.id = 'loading' + counter + '_select_' + count;
            this.value = '0';
            this.name = 'loading' + counter + '_select_' + count++;
        });
        count = 1;
        $('#unloading' + counter).find('input').each(function() {
            this.id = 'unloading' + counter + '_input_' + count;
            this.value = '';
            this.name = 'unloading' + counter + '_input_' + count++;
        });
        count = 1;
        $('#unloading' + counter).find('select').each(function() {
            this.id = 'unloading' + counter + '_select_' + count;
            this.value = '0';
            this.name = 'unloading' + counter + '_select_' + count++;
        });
        counter++;
        return false;
    }
    
    function saveAditional() 
    {
        $('#<%=tbLoadingID.ClientID%>').removeAttr('disabled');
        $('#<%=tbUnloadingID.ClientID%>').removeAttr('disabled');
        for (var i = 1; i < counter; i++) 
        {
            var Loading = {
                country_id: $('#loading' + i + '_select_3').val(),
                city: $('#loading' + i + '_input_3').val(),
                postcode: $('#loading' + i + '_input_4').val(),
                date: $('#loading' + i + '_input_2').val(),
                time: $('#loading' + i + '_select_1').val() + ' ' + $('#loading' + i + '_select_2').val()
            };

            var Unloading = {
                country_id: $('#unloading' + i + '_select_3').val(),
                city: $('#unloading' + i + '_input_3').val(),
                postcode: $('#unloading' + i + '_input_4').val(),
                date: $('#unloading' + i + '_input_2').val(),
                time: $('#unloading' + i + '_select_1').val() + ' ' + $('#unloading' + i + '_select_2').val()
            };
            
            $.ajax
            ({
                url: "webservices/Application.asmx/AddAditionalLoading",
                data: '{step2: ' + $.toJSON(Step2CargoTransport) +
                  ',loading:' + $.toJSON(Loading) +
                  ',unloading:' + $.toJSON(Unloading) + '}',
                dataType: "json",
                async: false,
                contentType: "application/json; charset=utf-8",
                type: "POST",
                complete: function(json1) {
                    var c = JSON.parse(json1.responseText);
                    var d = JSON.parse(c.d);
                }
            });
        }        
        return true;
    }
</script>
<div id="main_center">
    <div class="main_top" style="text-transform:uppercase">
        <eswf:ESi18nLabel ID="ESi18nLabel1" TextReference="comp_info" CssClass="_bold" runat="server"></eswf:ESi18nLabel>
    </div>
    <div class="main_content">
        <div id="contact_admin" style="padding:5px">
            <div class="contact_about">
                <eswf:ESi18nLabel ID="ESi18nLabel2" TextReference="basic_info" runat="server"></eswf:ESi18nLabel>
            </div>
            <div style="padding-bottom:5px;line-height:18px;text-align:left;height:141px">
                <div id="comp_img" style="float:left;height:150px;padding-top:5px;padding-left:12px;vertical-align:middle">
                    <asp:Image Height="100px" ID="imgLogo" ImageUrl="~/design_img/CompanyLogoDefault.jpg" runat="server" />
                </div>
                <div style="width:500px;float:left">
                    <div style="float:left;width:200px">
                        <p class="_margin10">
                           <eswf:ESi18nLabel ID="ESi18nLabel25" TextReference="comp_name" runat="server"></eswf:ESi18nLabel>
                       </p>
                        <p class="_margin10">
                            <eswf:ESi18nLabel ID="ESi18nLabel11" TextReference="comp_status" runat="server"></eswf:ESi18nLabel>
                        </p>
                        <p class="_margin10">
                            <eswf:ESi18nLabel ID="ESi18nLabel12" TextReference="online_status" runat="server"></eswf:ESi18nLabel>
                        </p>
                        <p class="_margin10">
                            <eswf:ESi18nLabel ID="ESi18nLabel13" TextReference="online_chat" runat="server"></eswf:ESi18nLabel>
                        </p>
                        <p class="_margin10">
                            <asp:Label ID="lblIsActive" Text="Active:" runat="server" Visible="false"></asp:Label>
                        </p>
                    </div>
                    <div style="float:left;width:200px">
                        <p class="_margin10" style="font-weight:bold;">
                          <asp:Label ID="Label3" runat="server" Text=""></asp:Label>
                       </p>
                        <p class="_margin10" style="font-weight:bold;">
                             <asp:Label ID="lblCompName" runat="server" Text=""></asp:Label>
                        </p>
                        <p class="_margin10">
                             <asp:Label ID="lblCompanyStatus" Font-Bold="true" runat="server" Text=""></asp:Label>
                        </p>
                        <p class="_margin10">
                            <asp:Label ID="lblOnlineStatus" Font-Bold="true" ForeColor="Red" runat="server" Text="Offline"></asp:Label>
                        </p>
                        <p class="_margin10">
                            <asp:Label ID="lblOnlineChat" Font-Bold="true" ForeColor="Red" runat="server" Text="Offline"></asp:Label>
                        </p>
                        <p class="_margin10">
                            <asp:CheckBox ID="cb_isActive" runat="server" Visible="false" />
                        </p>
                    </div>
                </div>
            </div>
            
            <!--DESTINATION INFORMATION-->
            <div style="clear:both"></div>
            <div class="contact_about">
            <eswf:ESi18nLabel ID="ESi18nLabel24" TextReference="destination_info" runat="server"></eswf:ESi18nLabel>
            </div>
            <div class="destination">
                <eswf:ESi18nLabel ID="ESi18nLabel49" TextReference="destination" runat="server"></eswf:ESi18nLabel> 1
            </div>
            <!--Loading-->
            <div class="looading" id="loading">
                <div style="width:100%;text-transform:uppercase;">
                    <eswf:ESi18nLabel ID="ESi18nLabel36" TextReference="loading" runat="server"></eswf:ESi18nLabel>
                </div>
                <br />
                <div style="clear:both;">
                    <asp:Label ID="lbl_loadingID" runat="server" Text="ID:"></asp:Label>
                </div>
                <div>
                     <asp:TextBox CssClass="formItem"  Enabled="false"  Width="150px" runat="server" ID="tbLoadingID"></asp:TextBox>
                </div>
                <div style="clear:both;">
                    <eswf:ESi18nLabel ID="ESi18nLabel26" TextReference="date" runat="server"></eswf:ESi18nLabel>
                </div>
                <div>
                    <asp:Label ID="lblLoadingDate" Font-Bold="true" runat="server" Text=""></asp:Label>
                    <asp:TextBox ID="tbDateLoading" MaxLength="40"  Width="150px" CssClass="formItem" runat="server"></asp:TextBox>
                </div>
                <div style="clear:both;">
                    <eswf:ESi18nLabel ID="ESi18nLabel27" TextReference="time" runat="server"></eswf:ESi18nLabel>
                </div>
                <div>
                    <asp:Label ID="lblLoadingTime" Font-Bold="true" runat="server" Text=""></asp:Label>    
                    <asp:DropDownList ID="tbTimeLoading" Width="102px" CssClass="formItem" runat="server"></asp:DropDownList>
                    <asp:DropDownList ID="ddlAMPMLoading" Width="48px" CssClass="formItem" runat="server">
                       <asp:ListItem Text="" Value=""></asp:ListItem>
                       <asp:ListItem Text="AM" Value="AM"></asp:ListItem>
                       <asp:ListItem Text="PM" Value="PM"></asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div style="clear:both;">
                    <eswf:ESi18nLabel ID="ESi18nLabel30" TextReference="country" runat="server"></eswf:ESi18nLabel>
                </div>
                <div>
                    <asp:Label ID="lblLoadingCountry" runat="server" Font-Bold="true" Text=""></asp:Label>
                    <asp:DropDownList ID="ddlCountryLoading" onchange="loadDetLoadingPlaces(true,this.value)" runat="server" CssClass="formItem" Width="152px"></asp:DropDownList>
                </div>
                <div style="clear:both;">
                    <eswf:ESi18nLabel ID="ESi18nLabel28" TextReference="city" runat="server"></eswf:ESi18nLabel>
                </div>
                <div>
                    <asp:Label ID="lblLoadingCity" runat="server" Font-Bold="true" Text=""></asp:Label>
                    <asp:TextBox ID="tbCityLoading" MaxLength="40"  Width="150px" CssClass="formItem" runat="server"></asp:TextBox>
                </div>
                <div style="clear:both;">
                    <eswf:ESi18nLabel ID="ESi18nLabel29" TextReference="post_code" runat="server"></eswf:ESi18nLabel>
                </div>
                <div>
                    <asp:Label ID="lblLoadingPostCode" runat="server" Font-Bold="true" Text=""></asp:Label>
                    <asp:TextBox ID="tbPostCodeLoading" MaxLength="40"  Width="148px" CssClass="formItem" runat="server"></asp:TextBox>
                </div>
                <div style="clear:both;">
                    <eswf:ESi18nLabel ID="lbl_airport_loading" Visible="false" TextReference="aiport_loading" runat="server"></eswf:ESi18nLabel>
                </div>
                <div>
                     <asp:Label ID="lblAirportLoading" Visible="false" runat="server" Font-Bold="true" Text="lblAirportLoading"></asp:Label>
                     <asp:DropDownList ID="ddlAirportLoading" Visible="false" runat="server" CssClass="formItem" Width="152px"></asp:DropDownList>
                </div>
                <div style="clear:both;">
                    <eswf:ESi18nLabel ID="lbl_seaport_loading" Visible="false" TextReference="seaport_loading" runat="server"></eswf:ESi18nLabel>
                </div>
                <div>
                     <asp:Label ID="lblSeaPortLoading" Visible="false" runat="server" Font-Bold="true" Text="lblSeaPortLoading"></asp:Label>
                     <asp:DropDownList ID="ddlSeaPortLoading" Visible="false" runat="server" CssClass="formItem" Width="152px"></asp:DropDownList>
                </div>
            </div>
            <!--UnLoading-->
            <div class="unloading" id="unloading">
                <div style="width:100%;text-transform:uppercase;">
                    <eswf:ESi18nLabel ID="ESi18nLabel37" TextReference="unloading" runat="server"></eswf:ESi18nLabel>
                </div>
                <br />
                 <div style="clear:both;">
                    <asp:Label ID="lbl_unloadingID" runat="server" Text="ID:"></asp:Label>
                </div>
                <div>
                    <asp:TextBox Width="153px" CssClass="formItem" Enabled="false" runat="server" ID="tbUnloadingID"></asp:TextBox>
                </div>
                <div style="clear:both;">
                    <eswf:ESi18nLabel  ID="ESi18nLabel31" TextReference="date" runat="server"></eswf:ESi18nLabel>
                </div>
                <div>
                    <asp:Label ID="lblUnLoadingDate" Font-Bold="true" runat="server" Text=""></asp:Label>                   
                    <asp:TextBox ID="tbDateUnloading" MaxLength="40"  Width="153px" CssClass="formItem" runat="server"></asp:TextBox>
                </div>
                <div style="clear:both;">
                    <eswf:ESi18nLabel ID="ESi18nLabel32" TextReference="time" runat="server"></eswf:ESi18nLabel>
                </div>
                <div>
                    <asp:Label ID="lblUnLoadingTime" Font-Bold="true" runat="server" Text=""></asp:Label>
                    <asp:DropDownList ID="tbTimeUnloading" Width="102px" CssClass="formItem" runat="server">
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlAMPMUnloading" Width="51px" CssClass="formItem" runat="server">
                       <asp:ListItem Text="" Value=""></asp:ListItem>
                       <asp:ListItem Text="AM" Value="AM"></asp:ListItem>
                       <asp:ListItem Text="PM" Value="PM"></asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div style="clear:both;">
                    <eswf:ESi18nLabel ID="ESi18nLabel33" TextReference="country" runat="server"></eswf:ESi18nLabel>
                </div>
                <div>
                    <asp:Label ID="lblUnLoadingCountry" runat="server" Font-Bold="true" Text=""></asp:Label>
                    <asp:DropDownList ID="ddlCountryUnloading" onchange="loadDetLoadingPlaces(false,this.value)" runat="server" CssClass="formItem" Width="155px"></asp:DropDownList>
                </div>
                <div style="clear:both;">
                    <eswf:ESi18nLabel ID="ESi18nLabel34" TextReference="city" runat="server"></eswf:ESi18nLabel>
                </div>
                <div>
                    <asp:Label ID="lblUnLoadingCity" runat="server" Font-Bold="true" Text=""></asp:Label>
                    <asp:TextBox ID="tbCityUnloading" MaxLength="40"  Width="153px" CssClass="formItem" runat="server"></asp:TextBox>
                </div>
                <div style="clear:both;">
                    <eswf:ESi18nLabel ID="ESi18nLabel35" TextReference="post_code" runat="server"></eswf:ESi18nLabel>
                </div>
                <div>
                    <asp:Label ID="lblUnLoadingPostCode" runat="server" Font-Bold="true" Text=""></asp:Label>
                    <asp:TextBox ID="tbPostCodeUnloading" MaxLength="40"  Width="153px" CssClass="formItem" runat="server"></asp:TextBox>
                </div>
                <div style="clear:both;">
                    <eswf:ESi18nLabel ID="lbl_aiport_unloading" Visible="false" TextReference="aiport_unloading" runat="server"></eswf:ESi18nLabel>
                </div>
                <div>
                     <asp:Label ID="lblAirportUnloading" Visible="false" runat="server" Font-Bold="true" Text="lblAirportUnloading"></asp:Label>
                     <asp:DropDownList ID="ddlAirportUnloading" Visible="false" runat="server" CssClass="formItem" Width="152px"></asp:DropDownList>
                </div>
                <div style="clear:both;">
                    <eswf:ESi18nLabel ID="lbl_seaport_unloading" Visible="false" TextReference="seaport_unloading" runat="server"></eswf:ESi18nLabel>
                </div>
                <div>
                    <asp:Label ID="lblSeaPortUnloading" Visible="false" runat="server" Font-Bold="true" Text="lblSeaPortUnloading"></asp:Label>
                     <asp:DropDownList ID="ddlSeaPortUnloading" Visible="false" runat="server" CssClass="formItem" Width="152px"></asp:DropDownList>
                </div>
            </div>
            
            <div id="additional_destination"></div>
            <div style="clear:both; text-align:right;width:700px;padding-right:30px;">
                 <eswf:ESi18nButton ID="btn_add_aditional" OnClientClick="return addAditional()" Visible="false" UseSubmitBehavior="false" TextReference="add_more" runat="server" CssClass="btn_add_more"/>
            </div> 
            <asp:PlaceHolder ID="ph_loading_uloading" runat="server"></asp:PlaceHolder>
             <br />
             <div style="clear:both; text-align:right;width:700px;padding-right:30px;">
                <eswf:ESi18nButton ID="btn_Update_App" Visible="false" OnClientClick="return saveAditional()" OnClick="btn_Update_App_Click" TextReference="save" runat="server" CssClass="btn_add_more"/>
             </div>
            
            <div style="clear:both;"><br /></div>
            <!--Techical Information-->
            <div class="contact_about">
            <eswf:ESi18nLabel ID="ESi18nLabel38" TextReference="techical_info" runat="server"></eswf:ESi18nLabel>
            </div>
            <div>
               <asp:TextBox ID="tb_appid" Visible="false" MaxLength="40"  Width="100" CssClass="formItem" runat="server"></asp:TextBox>
               <asp:TextBox ID="tb_type_transport_id" Visible="false" MaxLength="40"  Width="100" CssClass="formItem" runat="server"></asp:TextBox>
               <asp:TextBox ID="tb_type_offer_id" Visible="false" MaxLength="40"  Width="150px" CssClass="100" runat="server"></asp:TextBox>
            </div>
            <!--Tender App Place Holder-->
            <asp:PlaceHolder ID="ph_TenderApp" runat="server"></asp:PlaceHolder>
            <!--ph_TechInfo-->
            <asp:Panel ID="ph_TechInfo" runat="server">
            <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                <eswf:ESi18nLabel ID="ESi18nLabel43" TextReference="level_of_importance" runat="server"></eswf:ESi18nLabel>
            </div>
            <div style="padding-top:8px;text-align:left;font-weight:bold">
                <asp:Label ID="lblLevelOfImportance" runat="server" Text=""></asp:Label>
                <asp:DropDownList ID="ddlLevelOfImportnce" runat="server" CssClass="formItem" Width="200px">
                </asp:DropDownList>
            </div>
            <div style="float:left;clear:both;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                <eswf:ESi18nLabel ID="ESi18nLabel44" TextReference="vehicle_type" runat="server"></eswf:ESi18nLabel>
            </div>
            <div style="padding-top:8px;text-align:left;font-weight:bold">
                <asp:Label ID="lblVehicleType" runat="server" Text=""></asp:Label>
                <asp:DropDownList ID="ddlVehicleTypes" runat="server" CssClass="formItem" Width="200px">
                </asp:DropDownList>
            </div>
            <div style="float:left;clear:both;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                <eswf:ESi18nLabel ID="ESi18nLabel45" TextReference="placement_type" runat="server"></eswf:ESi18nLabel>
            </div>
            <div style="padding-top:8px;text-align:left;font-weight:bold">
            <asp:Label ID="lblPlacementType" runat="server" Text=""></asp:Label>
            <asp:DropDownList ID="ddlPlacementTypes" runat="server" CssClass="formItem" Width="200px">
                </asp:DropDownList>
            </div>
            <div style="float:left;clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                <eswf:ESi18nLabel ID="ESi18nLabel46" TextReference="packing_type" runat="server"></eswf:ESi18nLabel>
            </div>
            <div style="padding-top:8px;text-align:left;font-weight:bold">
            <asp:Label ID="lblPackingType" runat="server" Text=""></asp:Label>
            <asp:DropDownList ID="ddlPackingTypes" runat="server" CssClass="formItem" Width="200px">
                </asp:DropDownList>
            </div>
            <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                <eswf:ESi18nLabel ID="ESi18nLabel47" TextReference="special_conditions" runat="server"></eswf:ESi18nLabel>
            </div>
            <div style="padding-top:8px;text-align:left;font-weight:bold">
            <asp:Label ID="lblSpecCondition" runat="server" Text=""></asp:Label>
            <asp:DropDownList ID="ddlSpecualConditionTypes" runat="server" CssClass="formItem" Width="200px">
                </asp:DropDownList>
            </div>
            
            <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                <eswf:ESi18nLabel ID="ESi18nLabel39" TextReference="lenght" runat="server"></eswf:ESi18nLabel>
            </div>
            <div style="padding-top:8px;text-align:left;font-weight:bold">
                <asp:Label ID="lblLenght" runat="server" Text=""></asp:Label>
                <asp:TextBox ID="tbLenght" MaxLength="40"  Width="114px" CssClass="formItem" runat="server"></asp:TextBox>
                <asp:DropDownList ID="ddlLenght" runat="server" CssClass="formItem" Width="80px">
                </asp:DropDownList>
            </div>
            <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                <eswf:ESi18nLabel ID="ESi18nLabel40" TextReference="width" runat="server"></eswf:ESi18nLabel>
            </div>
            <div style="padding-top:8px;text-align:left;font-weight:bold">
                <asp:Label ID="lblWidth" runat="server" Text=""></asp:Label>
                <asp:TextBox ID="tbWidth" MaxLength="40"  Width="114px" CssClass="formItem" runat="server"></asp:TextBox>
                <asp:DropDownList ID="ddlWidth" runat="server" CssClass="formItem" Width="80px">
                </asp:DropDownList>
            </div>
            <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                <eswf:ESi18nLabel ID="ESi18nLabel50" TextReference="height" runat="server"></eswf:ESi18nLabel>
            </div>
            <div style="padding-top:8px;text-align:left;font-weight:bold">
                <asp:Label ID="lblHeight" runat="server" Text=""></asp:Label>
                <asp:TextBox ID="tbHeight" MaxLength="40"  Width="114px" CssClass="formItem" runat="server"></asp:TextBox>
                <asp:DropDownList ID="ddlHeight" runat="server" CssClass="formItem" Width="80px">
                </asp:DropDownList>
            </div>
             <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                <eswf:ESi18nLabel ID="ESi18nLabel51" TextReference="weight" runat="server"></eswf:ESi18nLabel>
            </div>
            <div style="padding-top:8px;text-align:left;font-weight:bold">
                <asp:Label ID="lblWeight" runat="server" Text=""></asp:Label>
                <asp:TextBox ID="tbWeight" MaxLength="40"  Width="114px" CssClass="formItem" runat="server"></asp:TextBox>
                <asp:DropDownList ID="ddlWeight" runat="server" CssClass="formItem" Width="80px">
                </asp:DropDownList>
            </div>
            <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                <eswf:ESi18nLabel ID="ESi18nLabel41" TextReference="volume" runat="server"></eswf:ESi18nLabel>
            </div>
            <div style="padding-top:8px;text-align:left;font-weight:bold">
                <asp:Label ID="lblVolume" runat="server" Text=""></asp:Label>
                <asp:TextBox ID="tbVolume" MaxLength="40"  Width="114px" CssClass="formItem" runat="server"></asp:TextBox>
                <asp:DropDownList ID="ddlVolume" runat="server" CssClass="formItem" Width="80px">
                </asp:DropDownList>
            </div>
            <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                <eswf:ESi18nLabel ID="ESi18nLabel42" TextReference="price" runat="server"></eswf:ESi18nLabel>
            </div>
            <div style="padding-top:8px;text-align:left;font-weight:bold">
                <asp:Label ID="lblPrice" runat="server" Text=""></asp:Label>
                <asp:TextBox ID="tbPrice" MaxLength="40"  Width="114px" CssClass="formItem" runat="server"></asp:TextBox>
               <asp:DropDownList ID="ddlPrice" runat="server" CssClass="formItem" Width="80px">
                </asp:DropDownList>
            </div>
            <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                <eswf:ESi18nLabel ID="ESi18nLabel48" TextReference="other_informattions" runat="server"></eswf:ESi18nLabel>
            </div>
            <div style="padding-top:8px;text-align:left;font-weight:bold;float:left;width:300px">
            <asp:Label ID="lblOtherInfo" runat="server" Text=""></asp:Label>
            <asp:TextBox ID="tbOtherInformattions" TextMode="MultiLine" Height="100px"  Width="200px" CssClass="formItem" runat="server"></asp:TextBox>
            </div>
             
            <div style="clear:both; text-align:right;width:700px;padding-right:30px;">
                <eswf:ESi18nButton ID="btn_UpdateTechicalInfo" Visible="false" OnClick="btn_UpdateTechicalInfo_Click" TextReference="save" runat="server" CssClass="btn_add_more"/>
             </div>
            </asp:Panel>
               
            <div style="clear:both"><br /></div>
            <!--Contact Information-->
            <div class="main_top" style="text-transform:uppercase;margin-left:-7px !important;">
                <eswf:ESi18nLabel ID="ESi18nLabel3" TextReference="comp_info" CssClass="_bold" runat="server"></eswf:ESi18nLabel>
            </div>
            <div>
                <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                    <eswf:ESi18nLabel ID="ESi18nLabel4" TextReference="comp_name" runat="server"></eswf:ESi18nLabel>
                </div>
                <div style="width:50%;padding-top:8px;text-align:left;font-weight:bold">
                    <asp:Label ID="lblCompanyName" runat="server" Text=""></asp:Label>
                    <asp:TextBox ID="tbCompName" Width="200px" runat="server"></asp:TextBox>
                </div>
                <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                    <eswf:ESi18nLabel ID="ESi18nLabel5" TextReference="country" runat="server"></eswf:ESi18nLabel>
                </div>
                <div style="width:50%;padding-top:8px;text-align:left;font-weight:bold">
                    <asp:Label ID="lblCountry" runat="server" Text=""></asp:Label>
                    <asp:DropDownList ID="ddlCompanyCountry" Width="202px" runat="server">
                    </asp:DropDownList>
                </div>
                <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                    <eswf:ESi18nLabel ID="ESi18nLabel6" TextReference="city" runat="server"></eswf:ESi18nLabel>
                </div>
                <div style="width:50%;padding-top:8px;text-align:left;font-weight:bold">
                <asp:Label ID="lblCity" runat="server" Text=""></asp:Label>
                 <asp:TextBox ID="tbCity" runat="server" Width="200px"></asp:TextBox>
                </div>
                <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                    <eswf:ESi18nLabel ID="ESi18nLabel7" TextReference="post_code" runat="server"></eswf:ESi18nLabel>
                </div>
                <div style="width:50%;padding-top:8px;text-align:left;font-weight:bold">
                <asp:Label ID="lblPostCode" runat="server" Text=""></asp:Label>
                <asp:TextBox ID="tbPostCode" runat="server" Width="200px"></asp:TextBox>
                </div>
                <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                    <eswf:ESi18nLabel ID="ESi18nLabel8" TextReference="address" runat="server"></eswf:ESi18nLabel>
                </div>
                <div style="width:50%;padding-top:8px;text-align:left;font-weight:bold">
                    <asp:Label ID="lblAddress" runat="server" Text=""></asp:Label>
                    <asp:TextBox ID="tbAddress" Width="200px" runat="server"></asp:TextBox>
                </div>
                <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                    <eswf:ESi18nLabel ID="ESi18nLabel9" TextReference="company_type" runat="server"></eswf:ESi18nLabel>
                </div>
                <div style="width:50%;padding-top:8px;text-align:left;font-weight:bold">
                <asp:Label ID="lblCompanyType" runat="server" Text=""></asp:Label>
                <asp:DropDownList ID="ddlCompanyType" Width="202px" runat="server">
                    </asp:DropDownList>
                </div>
                <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                    <eswf:ESi18nLabel ID="ESi18nLabel10" TextReference="operating_licence" runat="server"></eswf:ESi18nLabel>
                </div>
                <div style="width:50%;padding-top:8px;text-align:left;font-weight:bold">
                    <asp:Label ID="lblOperatingLicence" runat="server" Text=""></asp:Label>
                    <asp:TextBox ID="tbOperatingLicence" Width="200px" runat="server"></asp:TextBox>
                </div>
                <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                    <eswf:ESi18nLabel ID="ESi18nLabel14" TextReference="type_transport" runat="server"></eswf:ESi18nLabel>
                </div>
                <div style="width:50%;padding-top:8px;text-align:left;font-weight:bold">
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="lblTransportType" runat="server" Text=""></asp:Label>
                            </td>        
                        </tr>
                    </table>
                    <asp:CheckBoxList ID="cbTransportType" runat="server">
                    </asp:CheckBoxList>
                </div>
                <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                    <eswf:ESi18nLabel ID="ESi18nLabel15" TextReference="op_activity_info" runat="server"></eswf:ESi18nLabel>
                </div>
                <div style="width:50%;padding-top:8px;text-align:left;font-weight:bold">
                    <asp:Label ID="lblOperatingActivity" runat="server" Text=""></asp:Label>
                    <asp:TextBox ID="tbOperatingActivity" runat="server"></asp:TextBox>
                </div>
            </div>
            <div style="clear:both"><br /></div>
            <div class="contact_about">
                <eswf:ESi18nLabel ID="ESi18nLabel16" TextReference="cont_det" runat="server"></eswf:ESi18nLabel>
            </div>
                <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                    <eswf:ESi18nLabel ID="ESi18nLabel17" TextReference="telephone" runat="server"></eswf:ESi18nLabel>
                </div>
                <div style="width:50%;padding-top:8px;text-align:left;font-weight:bold">
                    <asp:Label ID="lblTelephone" runat="server" Text=""></asp:Label>
                    <asp:TextBox ID="tbExt" MaxLength="3" Width="50px" runat="server"></asp:TextBox>
                    <asp:TextBox ID="tbTelephone" Width="140px" runat="server"></asp:TextBox>
                </div>
                <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                    <eswf:ESi18nLabel ID="ESi18nLabel18" TextReference="fax" runat="server"></eswf:ESi18nLabel>
                </div>
                <div style="width:50%;padding-top:8px;text-align:left;font-weight:bold">
                    <asp:Label ID="lblFax" runat="server" Text=""></asp:Label>
                    <asp:TextBox ID="tbFax" Width="200px" runat="server"></asp:TextBox>
                </div>
                <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                    <eswf:ESi18nLabel ID="ESi18nLabel19" TextReference="mobile" runat="server"></eswf:ESi18nLabel>
                </div>
                <div style="width:50%;padding-top:8px;text-align:left;font-weight:bold">
                    <asp:Label ID="lblMobile" runat="server" Text=""></asp:Label>
                    <asp:TextBox ID="tbMobile" runat="server" Width="200px"></asp:TextBox>
                </div>
                <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                    <eswf:ESi18nLabel ID="ESi18nLabel20" TextReference="website" runat="server"></eswf:ESi18nLabel>
                </div>
                <div style="width:50%;padding-top:8px;text-align:left;font-weight:bold">
                    <asp:Label ID="lblWebsite" runat="server" Text=""></asp:Label>
                    <asp:TextBox ID="tbWebsite" runat="server" Width="200px"></asp:TextBox>
                </div>
                <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                    <eswf:ESi18nLabel ID="ESi18nLabel21" TextReference="contact_person" runat="server"></eswf:ESi18nLabel>
                </div>
                <div style="width:50%;padding-top:8px;text-align:left;font-weight:bold">
                    <asp:Label ID="lblContactPerson" runat="server" Text=""></asp:Label>
                    <asp:TextBox ID="tbContactPerson" runat="server" Width="200px"></asp:TextBox>
                </div>
                <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                    <eswf:ESi18nLabel ID="ESi18nLabel22" TextReference="reg_lang" runat="server"></eswf:ESi18nLabel>
                </div>
                <div style="width:50%;padding-top:8px;text-align:left;font-weight:bold">
                    <table><tr><td><asp:Label ID="lblLanguages" runat="server" Text=""></asp:Label></td></tr></table>
                    <asp:HiddenField ID="hf_lang" runat="server" />
                    <asp:DropDownList ID="tbLanguages" Visible="false" CssClass="formItem" Width="200px" runat="server">
                        </asp:DropDownList>   
                </div>
                <div style="clear:both;float:left;width:50%;text-align:left;padding-top:8px;padding-left:12px">
                    <eswf:ESi18nLabel ID="ESi18nLabel23" TextReference="job_title" runat="server"></eswf:ESi18nLabel>
                </div>
                <div style="width:50%;padding-top:8px;text-align:left;font-weight:bold">
                    <asp:Label ID="lblJobTitle" runat="server" Text=""></asp:Label>
                    <asp:TextBox ID="tbJobTitle" runat="server" Width="200px"></asp:TextBox>
                </div>
                <div style="clear:both;text-align:right;width:100%">
                </div>
                
                <div style="clear:both;text-align:right;width:100%;height:30px">
                  <eswf:ESi18nButton ID="btn_back_to_previous" Visible="true" TextReference="back_to_previous" 
                     runat="server"  
                      CssClass="contact_submit" onclick="btn_back_to_previous_Click" style="float:left" /> 
                      
                       <eswf:ESi18nButton ID="btn_Delete_App" Visible="false" TextReference="delete_app"  
                     runat="server" style="float:right;padding-top:0px" OnClientClick="return DeleteApplication()"
                      onclick="btn_Delete_App_Click" CssClass="contact_submit" /> 
                     
                       <eswf:ESi18nButton ID="btn_Save_to_Favorites" Visible="false" TextReference="save_fav" 
                     runat="server" style="float:right;padding-top:0px" onclick="btn_Save_to_Favorites_Click" CssClass="contact_submit" />          
               </div>        
        </div>
        <div class="main_top" style="text-transform:uppercase;margin-left:-2px"></div>
    </div>
</div>
